<!DOCTYPE html>
<html lang="zh">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>传客后台管理-首页管理</title>
	<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
	<link rel="stylesheet" href="__STATIC__/assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
	<link rel="stylesheet" href="__STATIC__/assets/css/ready.css">
	<link rel="stylesheet" href="__STATIC__/assets/css/demo.css">
</head>
<body>
	<div class="wrapper">
		<div class="main-header">
			<div class="logo-header">
				<a href="index.html" class="logo">
					传客后台管理
				</a>
				<button class="navbar-toggler sidenav-toggler ml-auto" type="button" data-toggle="collapse" data-target="collapse" aria-controls="sidebar" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>
				<button class="topbar-toggler more"><i class="la la-ellipsis-v"></i></button>
			</div>
			<nav class="navbar navbar-header navbar-expand-lg">
				<div class="container-fluid">
					
					<form class="navbar-left navbar-form nav-search mr-md-3" action="">
						<div class="input-group">
							<input type="text" placeholder="Search ..." class="form-control">
							<div class="input-group-append">
								<span class="input-group-text">
									<i class="la la-search search-icon"></i>
								</span>
							</div>
						</div>
					</form>
					<ul class="navbar-nav topbar-nav ml-md-auto align-items-center">
						<li class="nav-item dropdown hidden-caret">
							<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								<i class="la la-envelope"></i>
							</a>
							<div class="dropdown-menu" aria-labelledby="navbarDropdown">
								<a class="dropdown-item" href="#">Action</a>
								<a class="dropdown-item" href="#">Another action</a>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="#">Something else here</a>
							</div>
						</li>
						<li class="nav-item dropdown hidden-caret">
							<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
								<i class="la la-bell"></i>
								<span class="notification">3</span>
							</a>
							<ul class="dropdown-menu notif-box" aria-labelledby="navbarDropdown">
								<li>
									<div class="dropdown-title">You have 4 new notification</div>
								</li>
								<li>
									<div class="notif-center">
										<a href="#">
											<div class="notif-icon notif-primary"> <i class="la la-user-plus"></i> </div>
											<div class="notif-content">
												<span class="block">
													New user registered
												</span>
												<span class="time">5 minutes ago</span> 
											</div>
										</a>
										<a href="#">
											<div class="notif-icon notif-success"> <i class="la la-comment"></i> </div>
											<div class="notif-content">
												<span class="block">
													Rahmad commented on Admin
												</span>
												<span class="time">12 minutes ago</span> 
											</div>
										</a>
										<a href="#">
											<div class="notif-img"> 
												<img src="__STATIC__/assets/img/profile2.jpg" alt="Img Profile">
											</div>
											<div class="notif-content">
												<span class="block">
													Reza send messages to you
												</span>
												<span class="time">12 minutes ago</span> 
											</div>
										</a>
										<a href="#">
											<div class="notif-icon notif-danger"> <i class="la la-heart"></i> </div>
											<div class="notif-content">
												<span class="block">
													Farrah liked Admin
												</span>
												<span class="time">17 minutes ago</span> 
											</div>
										</a>
									</div>
								</li>
								<li>
									<a class="see-all" href="javascript:void(0);"> <strong>See all notifications</strong> <i class="la la-angle-right"></i> </a>
								</li>
							</ul>
						</li>
						<li class="nav-item dropdown">
							<a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="#" aria-expanded="false"> <img src="__STATIC__/assets/img/profile.jpg" alt="user-img" width="36" class="img-circle"><span >panda</span></span> </a>
							<ul class="dropdown-menu dropdown-user">
								<li>
									<div class="user-box">
										<div class="u-img"><img src="__STATIC__/assets/img/profile.jpg" alt="user"></div>
										<div class="u-text">
											<h4>Hizrian</h4>
											<p class="text-muted">hello@themekita.com</p><a href="profile.html" class="btn btn-rounded btn-danger btn-sm">View Profile</a></div>
										</div>
									</li>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="#"><i class="ti-user"></i> My Profile</a>
									<a class="dropdown-item" href="#"></i> My Balance</a>
									<a class="dropdown-item" href="#"><i class="ti-email"></i> Inbox</a>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="#"><i class="ti-settings"></i> Account Setting</a>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="#"><i class="fa fa-power-off"></i> Logout</a>
								</ul>
								<!-- /.dropdown-user -->
							</li>
						</ul>
					</div>
				</nav>
			</div>
			<div class="sidebar">
				<div class="scrollbar-inner sidebar-wrapper">
					<ul class="nav">
						<li class="nav-item">
							<a href="/chuanke/public/index.php/superadmin/user/index.html">
								<i class="la la-dashboard"></i>
								<p>用户管理</p>
							<!-- 	<span class="badge badge-count">5</span> -->
							</a>
						</li>
						<li class="nav-item">
							<a href="/chuanke/public/index.php/superadmin/file/index.html">
								<i class="la la-table"></i>
								<p>文件管理</p>
							<!-- 	<span class="badge badge-count">14</span> -->
							</a>
						</li>
						<li class="nav-item">
							<a href="/chuanke/public/index.php/superadmin/collect/index.html">
								<i class="la la-keyboard-o"></i>
								<p>收藏管理</p>
								<!-- <span class="badge badge-count">50</span> -->
							</a>
						</li>
						<li class="nav-item">
							<a href="/chuanke/public/index.php/superadmin/order/index.html">
								<i class="la la-th"></i>
								<p>订单管理</p>
								<!-- <span class="badge badge-count">6</span> -->
							</a>

						</li>
						<li class="nav-item">
							<a href="/chuanke/public/index.php/superadmin/device/index.html">
								<i class="la la-bell"></i>
								<p>设备管理</p>
							<!-- 	<span class="badge badge-success">3</span> -->
							</a>
						</li>
						<li class="nav-item">
							<a href="/chuanke/public/index.php/superadmin/template/index.html">
								<i class="la la-font"></i>
								<p>模板管理</p>
							<!-- 	<span class="badge badge-danger">25</span> -->
							</a>
						</li>
						<li class="nav-item active">
							<a href="#">
								<i class="la la-fonticons"></i>
								<p>首页广告管理</p>
							</a>
						</li>
						
					</ul>
				</div>
			</div>
			<div class="main-panel">
				<div class="content">
					<div class="cotainer-fluid">
						<div class="cotainer-fluid">
						<div class="card">
							<h5 style="  padding: 15px 15px;
  background-color: transparent;">首页轮播广告管理</h4>
							<h6 style="  padding: 15px 15px;
  background-color: transparent;">轮播列表</h6>
						</div>
						<div class="card">
							
							<div class="card-head">
								<h6 class="card-header">搜索条件</h6>
							</div>
							<div class="card-body">
								<form method=post action="{:url('Advertise/find')}" enctype="multipart/form-data"  class="form-horizontal">
									<div class="form-group from-show-notify row card-header">
										<div class="col-lg-2 col-md-2 col-sm-3 ">
											<input type="text" name="findid" class="form-control" id="findadid" placeholder="输入广告ID">
										</div>
												<div class="col-lg-1 col-md-2 col-sm-3 text-right">
													<label><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">广告名称：</font></font></label>
												</div>
												<div class="col-lg-2 col-md-2 col-sm-3">
													<input type="text" name="findname" class="form-control" id="findadname" placeholder="输入广告ID">
												</div>
												<div class="col-lg-1 col-md-2 col-sm-3 text-right">
													<label><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">广告状态：</font></font></label>
												</div>
												<div class="col-lg-3 col-md-3 col-sm-3">
													<input type="text" name="findstate" class="form-control" id="findadstate" placeholder="输入广告状态	0.审核中1.审核通过2.审核未通过">
												</div>
											</div>
								
									<div class="form-group from-show-notify row">
												<div class="col-lg-6 col-md-6 col-sm-3">
													<input type="submit" class="btn btn-primary" value="搜索">
												</div>
									</div>
								</form>
							</div>
						</div>
						<div class="row">
							<div class="col-md-12">
								<div class="card">
									<div class="card-header form-group from-show-notify row">
										<div class="card-title col-lg-2 col-md-2 col-sm-3">轮播列表</div>
												<div class="col-lg-9 col-md-8 col-sm-3 text-right">
													<label><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"></font></font></label>
												</div>
												
									</div>
									<div class="card-body">
										<table class="table table-striped  mt-3">
											<thead>
												<tr>
													<th scope="col"><p class="text-center">编号</p></th>
													<th scope="col"><p class="text-center">广告名称</p></th>
													<th scope="col"><p class="text-center">广告内容</p></th>
													<th scope="col"><p class="text-center">开始时间</p></th>
													<th scope="col"><p class="text-center">结束时间</p></th>
													<th scope="col"><p class="text-center">状态</p></th>
													<th scope="col"><p class="text-center">操作</p></th>
												</tr>
											</thead>
											<tbody>
												{volist name="advertiseList" id="advertise"}
												<tr>
													<td><p class="text-center">{$advertise.adid}</p></td>
													<td><p class="text-center">{$advertise.adname}</p></td>
													<td class="text-center">
														<img src="__STATIC__/Advertise/{$advertise.adpic}" width="70px" height="70px" >
													</td>
													<td><p class="text-center">{$advertise.adstarttime}</p><p class="text-center">
													<td><p class="text-center">{$advertise.adendtime}</p></td>
													<td>
														{if condition="$advertise.adstate==1"}<p class="text-center text-success">审核通过</p>
														{elseif condition="$advertise.adstate==2"/}<p class="text-center text-error">审核失败</p>
														{else/}<p class="text-center text-error">审核中</p>
														{/if}
													</td>
													<td class="text-center">
														<a class="text-success" href="{:url('tongguo',['id'=>$advertise.adid])}"><i class="icon-trash"></i> 同意</a><br>
														<a class="text-danger" href="{:url('jujue',['id'=>$advertise.adid])}"><i class="icon-trash"></i> 拒绝</a><br>
													</td>
												</tr>		
												{/volist}												
											</tbody>
										</table>
									</div>
								</div>
							</div>
						</div>
					</div>	
				</div>
			</div>			
				<footer class="footer">
					<div class="container-fluid">
						<nav class="pull-left">
							<ul class="nav">
								<li class="nav-item">
									<a class="nav-link" href="#">
										ThemeKita
									</a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="#">
										Help
									</a>
								</li>
								<li class="nav-item">
									<a class="nav-link" href="#license/#free-item">
										Licenses
									</a>
								</li>
							</ul>
						</nav>
						<div class="copyright ml-auto">
							2018, made with <i class="la la-heart heart text-danger"></i> by <a href="#">ThemeKita</a> - More Templates </div>				
					</div>
				</footer>
			</div>
		</div>
	</div>

	
</body>
{include file="public:footer"/}
</html>